/**
 * @author zliming
 */

Include = function(jsFile){
    document.write('<script type="text/javascript" src="' + jsFile + '"></script>');
};
if(Browser.Engine.trident){
	Include("../flashcanvas.js");
}

var CImage = new Class({
    initialize: function(url){
        this.image = new Image();
        this.image.src = url;
    },
    Src: function(url){
        this.image.src = url;
    },
    
    OnDraw: function(){
        ctx.drawImage(this.image, this.x, this.y);
    },
    x: 0,
    y: 0
});

Array2D = function(i, j){
    var arr = new Array(i);
    for (var k = 0; k < i; k++) {
        arr[k] = new Array(j);
    }
    return arr;
}
